package net.hn.hnms.biz.gasext.dws.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.hn.hnms.biz.gasext.dws.domain.DwdAqjcCdssHPo;
import net.hn.hnms.biz.gasext.dws.domain.vo.DwdAqjcCdssHVo;
import net.hn.hnms.sys.common.mybatis.core.page.PageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS(value = "dwd")
public interface DwdAqjcCdssHMapper extends BaseMapper<DwdAqjcCdssHPo> {
    Integer selectPointNumber(@Param("orgCode") String orgCode);

    Integer selectCoWarnCount(@Param("orgCode") String orgCode);

    Integer selectCH4WarnCount(@Param("orgCode") String orgCode);

    Integer selectCH4NumberAll(@Param("orgCode") String orgCode);

    Integer selectCONumberAll(@Param("orgCode") String orgCode);

    /**
     * 数据查询-安全监控-实时数据
     * @param pageQuery
     * @param type
     * @param status
     * @return
     */
    List<DwdAqjcCdssHVo> aqjkNowDataList(@Param("pageQuery") PageQuery pageQuery, @Param("type") String type, @Param("status") String status, @Param("mineCodeList") List<String> mineCodeList, @Param("mineCode") String mineCode);

    /**
     * 查询安全监控实时数据
     * @param pageQuery
     * @param type
     * @param status
     * @param mineCode
     * @return
     */
    List<DwdAqjcCdssHVo> aqjkNowDataListByMineCode(@Param("pageQuery") PageQuery pageQuery, @Param("type") String type, @Param("status") String status, @Param("mineCode") String mineCode);
}
